package SMS.pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName courses
 */
@Data
public class Courses implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String courseno;

    /**
     * 
     */
    private String coursenam;

    /**
     * 
     */
    private String time;

    /**
     * 
     */
    private String address;

    /**
     * 
     */
    private String collageno;

    /**
     * 
     */
    private String teano;

    /**
     * 
     */
    private String bookno;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Courses other = (Courses) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCourseno() == null ? other.getCourseno() == null : this.getCourseno().equals(other.getCourseno()))
            && (this.getCoursenam() == null ? other.getCoursenam() == null : this.getCoursenam().equals(other.getCoursenam()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getCollageno() == null ? other.getCollageno() == null : this.getCollageno().equals(other.getCollageno()))
            && (this.getTeano() == null ? other.getTeano() == null : this.getTeano().equals(other.getTeano()))
            && (this.getBookno() == null ? other.getBookno() == null : this.getBookno().equals(other.getBookno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCourseno() == null) ? 0 : getCourseno().hashCode());
        result = prime * result + ((getCoursenam() == null) ? 0 : getCoursenam().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getCollageno() == null) ? 0 : getCollageno().hashCode());
        result = prime * result + ((getTeano() == null) ? 0 : getTeano().hashCode());
        result = prime * result + ((getBookno() == null) ? 0 : getBookno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", courseno=").append(courseno);
        sb.append(", coursenam=").append(coursenam);
        sb.append(", time=").append(time);
        sb.append(", address=").append(address);
        sb.append(", collageno=").append(collageno);
        sb.append(", teano=").append(teano);
        sb.append(", bookno=").append(bookno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}